package com.wb3.meta.api.core.service;

import com.github.binarywang.wxpay.exception.WxPayException;
import com.wb3.meta.api.core.model.GoodsInfo;
import com.wb3.meta.api.core.vo.ReqGoodsInfoVo;
import com.wb3.meta.api.core.vo.ReqGoodsOrdersVo;
import com.wb3.meta.api.core.vo.ResGoodsInfoVo;
import com.wb3.meta.common.plugin.CommonResultServiceInterface;
import com.wb3.meta.common.pojo.ResultT;

import java.security.NoSuchAlgorithmException;

public interface GoodsInfoService extends CommonResultServiceInterface<ReqGoodsInfoVo, ResGoodsInfoVo, GoodsInfo> {
    ResultT buyCheckBefore(ReqGoodsInfoVo reqGoodsInfoVo);

    ResultT createOrder(ReqGoodsOrdersVo reqGoodsOrdersVo) throws WxPayException, NoSuchAlgorithmException;

    void handleNofityResult(String xmlData) throws WxPayException;

    ResultT createNativeOrder(ReqGoodsOrdersVo reqGoodsOrdersVo);
}
